next
Round
Technologies
Experiences
Contribute
Login
next
Round
Technologies
Experiences
Contribute
Login
Question Loading...
API Design
1. What decorators does NestJS provide for route parameters and how do they differ from query params?
Level: Expert | Frequency: High
2. How do wildcard and optional route segments work in NestJS?
Level: Expert | Frequency: High
3. What is the difference between @Param('id') and @Param() with no argument in NestJS?
Level: Expert | Frequency: High
4. How do you handle a route where the param can be either a numeric ID or the literal string 'me' in NestJS?
Level: Expert | Frequency: High
5. How do you extract and type query parameters in NestJS including optional ones with defaults?
Level: Expert | Frequency: High
6. How do you handle multi-value query parameters (arrays) in NestJS?
Level: Expert | Frequency: High
7. How do you build a reusable pagination and sorting query DTO that can be extended by feature-specific DTOs in NestJS?
Level: Expert | Frequency: High
8. What is the difference between @Body(), @Body('field'), and using a full DTO class in NestJS?
Level: Expert | Frequency: High
9. How do you implement a PATCH endpoint correctly with partial validation using PartialType in NestJS?
Level: Expert | Frequency: High
10. How do you handle raw body access for webhook signature verification in NestJS?
Level: Expert | Frequency: High
11. How do you implement discriminated union body validation where the DTO shape depends on a type field in NestJS?
Level: Expert | Frequency: High
12. How do you set HTTP status codes, response headers, and redirects in NestJS without using @Res()?
Level: Expert | Frequency: High
13. How do you use ClassSerializerInterceptor with @Exclude() and @Expose() to control response shape in NestJS?
Level: Expert | Frequency: High
14. How do you implement a standard paginated response envelope across all list endpoints in NestJS?
Level: Expert | Frequency: High
15. How do you stream a large file or dataset as a response without loading it fully into memory in NestJS?
Level: Expert | Frequency: High
16. How do you implement content negotiation so an endpoint returns JSON or CSV based on the Accept header in NestJS?
Level: Expert | Frequency: High
17. What versioning strategies does NestJS support and how do you enable versioning?
Level: Expert | Frequency: High
18. How do you apply versioning at controller and method level in NestJS and how do you mark a route as version-neutral?
Level: Expert | Frequency: High
19. What is the recommended file structure for versioned controllers in a NestJS project?
Level: Expert | Frequency: High
20. How do you set a default version so unversioned requests are handled by a specific version in NestJS?
Level: Expert | Frequency: High
21. How do you set up Swagger in a NestJS application and annotate your controllers?
Level: Expert | Frequency: High
22. How do you document DTO properties for Swagger and handle optional vs required fields in NestJS?
Level: Expert | Frequency: High
23. How do you handle HATEOAS hypermedia links in NestJS REST responses?
Level: Expert | Frequency: High
24. How do you implement idempotency keys for POST requests to prevent duplicate operations in NestJS?
Level: Expert | Frequency: High
25. How do you implement API rate limiting per user or per IP in NestJS?
Level: Expert | Frequency: High
All Topics
Basics
Modules
Decorators
Controllers
Dependency Injection
Providers
Architecture
Request Lifecycle
Middleware
Guards
Interceptors
Pipes
Filters
Exception Handling
API Design
GraphQL
Database and ORM
Microservices
Authentication and Authorization,
Interceptors